home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
sndoff15.zip
/
SOUNDOFF.DOC
< prev
next >
Wrap
Text File
|
1992-08-18
|
14KB
|
351 lines
SOUND OFF!
Version 1.5
Command Line and Batch File
Sound Producer
(C) Copyright 1992 Rand Nowell
RaLin Enterprises
"Putting Bits Together" (tm)
Copyright: i
Sound Off!, the program and documentation,
is not a Public Domain or Free program. It is the
Copyrighted (C)1992 work of Rand Nowell dba Ralin Enterprises.
All rights are reserved. Copying, duplicating, selling or otherwise
distributing this product except as noted in the Distribution Policy
below is a violation of Federal Copyright Law.
Distribution:
1. Feel free to distribute the Shareware version of this program as
often as you like to any interested parties. Distribution to
Electronic Bullentin Boards is encouraged.
2. Please do not distribute this program without all the original
related files such as documentation, readme files, registration
forms etc.
3. Please distribute ONLY the original authenticated ZIP format file.
4. Please obtain our written permission before including the program
with any "bundled" software packages.
5. Please do not accept payment for the program; a copying fee of
$5.00 per diskette may be charged by a non-profit user-group.
6. Please do not alter the program or documentation in any way.
7. Individuals, groups, vendors or other software distribution
companies which market diskettes containg shareware or test-drive
evaluation programs, for profit, must obtain written permission
from RaLin Enterprises prior to distribution.
PLEASE SEE THE DISTRIBUTION NOTE LATER IN THE MANUAL FOR DISTRIBUTION
POLICY FOR THIS PROGRAM. IT OVER-RIDES CERTAIN PARTS OF THIS
COPYRIGHT NOTICE.
************************* DISCLAIMER *****************************
This program is supplied "as is" without warrenty of any kind. The
entire risk of using, and results from the use of, is assumed by you
the user. You assume all costs of repair, servicing and corrections
stemming from the use of this program.
Rand Nowell and/or RaLin Enterprises, or any other associated
company of the program author will not be held liable for any
damages from the use of this program. No warrenties are expressed or
implied.
********************************************************************
To the original licensee of the REGISTERD version of The Program
RaLin Enterprises DOES warrant that the program disk(s) on which the
program is recorded, be free from defects in material and
workmanship under normal use and service for a period of (90) ninety
days from date of delivery as evidenced by your receipt. Our entire
liability and your exclusive remedy shall be replacement of the
deffective disk not meeting the standards of this limited warranty.
And in no case shall exceed the cost of reimbursment of monies paid for
program registration.
Sound Off! Batch/Command Line Sound Generator 1.5 Page 1
OVERVIEW:
Sound Off! can be used to generate sound patterns from the command line or
from within a batch file. Frequencies can be given on the command line or
read from a Script File.
Various switches are provided for Turning off display messages, Running
an "Alarm", Turning off a "runaway" sound, Reading from script file.
SYSTEM REQUIREMENTS:
Are few. IBM PC/XT or better, running Dos 3x and up.
Video: Runs on mono or color.
Disks: Will run on floppy system, but performance is slow
for scripts.
COMMAND SYNTAX:
SOUNDOFF [switches][scriptfile]<Start_Frequency><End_Frequency><Delay><Step>
See examples for variables for Alarm Procedures.
Examples will be provided shortly. For now lets explore these options
and parameters.
The minimum needed for Sound Off! to work are the frequencies, the delay
factor, and the step factor.
Frequencies will hereafter be reffered to as "notes".
* Start_Freq: This is the first note to be played, anything below about
70 probably won't be heard unless you have a special speaker setup
for your PC.
* End_Freq: This is the last note Sound Off! will play. After about
2500, the note again becomes hard to hear.
* Delay: This is the time, in milliseconds, for Sound Off! to pause
between the playing of each note. There are aprox. 1000 milliseconds
to a second. I say aprox., because the PC timer is not as accurate as
a watch. If you specify 1000 for a delay, the delay will not likely
be an exact second.
* Step: This specifies how big a jump Sound Off! should make between
notes. For instance, Start and End of 200 & 900 with a Step value of
50 will play the notes 200 250 300 350 400 450 500 550 600 650...900
Experimentation with these values is the best teacher!
To play a "tune" UP the scale make the Start_Frequency LESS
than the End_Frequency.
Reverse this to play DOWN the scale, The Start_Frequency should
Bring life to your Batch Files with Sound!!
Sound Off! Batch/Command Line Sound Generator 1.5 Page 2
be GREATER than the End_Frequency.
SWITCHES:
Switches may be upper or lower case. They must be proceeded by a
forward slash, ie: /f and they must be seperated by a space, from any
other variable. Only one switch at a time is used. There are no
instances where more than one switch can be used.
/f Instructs Sound Off! to read variables from a scriptfile. The syntax is
SOUNDOFF /f filename. Program displays are active.
The script file is a simple Ascii text file and can be created by
any Ascii text file editor. You should give the scriptfile the extension
of .SOS This extension is REQUIRED!
/fs Runs the script file with Displays turned off.
SOUNDOFF /fs filename
Our program TFREQ (Ver 2.0) will create script files for Sound Off!
When you specify the filename on the command line, do not included the
extension, it is assigned by Sound Off! If the script file resides in a
directory that is included in your PATH statement, or in the current
directory then only the filename is needed.
If it does not then include a drive\dir\ with the filename.
The script file must not include any alpha characters in the variable
lines. All variables must be numeric: from 0..9 Values must start in
the first column, and must have a space between them.
You can view the sample scripts included, but a small example is given
here.
While running a script, Sound Off! does not display any messages or
screen antics. It runs in silent mode. (See /s switch)
Scripts use only one frequency and one delay per note, no End_Freq or
Step is used.
Example Script: 400 50
640 10
330 25
440 50
550 200
COMMENTS IN SCRIPTS:
If you wish to add comments to the script, put a 0 (ZERO) for the
last frequency and delay, then insert comments after that. ie:
400 50
.
.
.
550 200
Bring life to your Batch Files with Sound!!
Sound Off! Batch/Command Line Sound Generator 1.5 Page 3
0 0
Note: This is a test script for John.
eof filename.sos
If you are careful, you can place comments to the right of the notes
and delays. Be sure to move to the right at least 3 or 4 spaces.
You can write a letter after the var